home *** CD-ROM | disk | FTP | other *** search
XSetup plugin | 1999-07-17 | 1.2 KB | 52 lines |
- "FILE"="Xteq Systems X-Setup Plugin 5.0"
- "TYPE"="6"
- "COUNT"="1"
- "UIPATH"="Internet\Windows Media Player"
- "NAME"="Advanced Options"
- "LANGUAGE"="VBScript"
- "VERSION"="1.0"
- "TEXT 1"="Allow automatic Codec downloads"
- "DESCRIPTION 1"="Some options for WMP."
- "AUTHOR"="Xteq Systems"
- "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
- "COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@xteq.com."
-
-
-
- sV1="HKCU\Software\Policies\Microsoft\WindowsMediaPlayer\NoCodecDownload" ' DW
-
- 'Called when the Plugin is started
- SUB Plugin_Initialize
- i=RegReadValue(sV1)
- if i<>1 then SetUIElement 1,true
- END SUB
-
- 'Called when the Plugin should validate the Data the user has entered
- SUB Plugin_CheckData(ElementIndex)
- END SUB
-
-
-
- 'Called when the Plugin should apply the changes
- SUB Plugin_Apply(ElementIndex,ElementSubIndex)
- Call Wrt(1,sV1)
- END SUB
-
- Sub Wrt(ITM,VAL)
- b=GetUIElement(ITM)
- if b=false then
- Call RegWriteValue(VAL,1,2)
- else
- s=RegReadValue(VAL)
- if IsEmpty(s)=false then
- Call RegDeleteValue(VAL)
- end if
- end if
- end sub
-
-
- 'Called when the Plugin is about to be removed from memory
- SUB Plugin_Terminate
- END SUB
-
-